<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    if (session.getAttribute("LoginedUserName") == null){
        request.getRequestDispatcher("loginForm.jsp").forward(request,response);
        return;
    }
%>
<html>
<head>
    <title>添加</title>
</head>
<body>
<h1>添加用户信息页面</h1><br/>
<a href="index.jsp">返回</a>
<hr>
<%=(request.getAttribute("msg")==null?"":"<div id=msg style="+"color:red;"+" >"+request.getAttribute("msg")+"</div>")%>
<form name='sendForm' action="send.jsp" method="post">
    <table width='30%' border='0' align="center">
        <tr>
            <td><strong>姓名</strong></td>
            <td><input type="text" name="SendName"></td>
        </tr>
        <tr>
            <td><strong>学号</strong></td>
            <td><input type="text" name="SendNumber"></td>
        </tr>
        <tr>
            <td><strong>专业</strong></td>
            <td><input type="text" name="SendMajor"></td>
        </tr>
        <tr>
            <td><strong>性别</strong></td>
            <td><input type="text" name="SendGender"></td>
        </tr>
        <tr>
            <td><strong>年龄</strong></td>
            <td><input type="text" name="Sendage"></td>
        </tr>
        <tr>
            <td><strong>年级</strong></td>
            <td><input type="text" name="SendGrade"></td>
        </tr>
        <tr>
            <td><strong>班级</strong></td>
            <td><input type="text" name="Sendbanji"/></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="提交" /></td>
        </tr>
    </table>
</form>
<%@include file="footer.jsp" %>
</body>
</html>
